import 'package:xin_he/generated/json/base/json_convert_content.dart';
import 'package:xin_he/page/mine/xin_he_bank_management/xin_he_bank_entity.dart';

XinHeBankEntity $XinHeBankEntityFromJson(Map<String, dynamic> json) {
	final XinHeBankEntity xinHeBankEntity = XinHeBankEntity();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		xinHeBankEntity.id = id;
	}
	final String? bankType = jsonConvert.convert<String>(json['bankType']);
	if (bankType != null) {
		xinHeBankEntity.bankType = bankType;
	}
	final dynamic fUserId = jsonConvert.convert<dynamic>(json['fUserId']);
	if (fUserId != null) {
		xinHeBankEntity.fUserId = fUserId;
	}
	final String? code = jsonConvert.convert<String>(json['code']);
	if (code != null) {
		xinHeBankEntity.code = code;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		xinHeBankEntity.name = name;
	}
	final String? bankName = jsonConvert.convert<String>(json['bankName']);
	if (bankName != null) {
		xinHeBankEntity.bankName = bankName;
	}
	final int? isDefault = jsonConvert.convert<int>(json['isDefault']);
	if (isDefault != null) {
		xinHeBankEntity.isDefault = isDefault;
	}
	final dynamic removed = jsonConvert.convert<dynamic>(json['removed']);
	if (removed != null) {
		xinHeBankEntity.removed = removed;
	}
	final bool? isSelected = jsonConvert.convert<bool>(json['isSelected']);
	if (isSelected != null) {
		xinHeBankEntity.isSelected = isSelected;
	}
	return xinHeBankEntity;
}

Map<String, dynamic> $XinHeBankEntityToJson(XinHeBankEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['bankType'] = entity.bankType;
	data['fUserId'] = entity.fUserId;
	data['code'] = entity.code;
	data['name'] = entity.name;
	data['bankName'] = entity.bankName;
	data['isDefault'] = entity.isDefault;
	data['removed'] = entity.removed;
	data['isSelected'] = entity.isSelected;
	return data;
}